import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 获取现场调查信息
export const getCustomerService = params => axios.get(`${SERVER.CMSCLOUD_WMS}/customerService/sceneExamine`, { params });

// 修改现场调查信息
export const updateCustomerService = (id , params) => axios.put(`${SERVER.CMSCLOUD_WMS}/customerService/sceneExamine/${id}`,  params );

// 批量关闭
export const piliangguanbi = params => axios.put(`${SERVER.CMSCLOUD_WMS}/customerService/sceneExamine/piliangguanbi`,  params );

// 保存质量报告
export const insertReport = params => axios.post(`${SERVER.CMSCLOUD_WMS}/customerService/qualityReport`,  params );

// 修改
export const updateIsDelivery = params => axios.put(`${SERVER.CMSCLOUD_WMS}/customerService/qualityReport/updateIsDelivery`,  params );

// 保存质量报告
export const selectQualityReport = params => axios.get(`${SERVER.CMSCLOUD_WMS}/customerService/qualityReport`,  { params } );

// 根据留车单号查询质量报告
export const getListByRetailNo = params => axios.get(`${SERVER.CLAIMFAC}/rPQaReport/getListByRetailNo`,  { params } );

// 传输数据
export const transmissionData = params => axios.post(`${SERVER.CMSCLOUD_WMS}/customerService/qualityReport/transmissionData`,   params  );
